<template>
  <div class="home">
    <div class="search-box">
      <div class="search">
        <input type="text" placeholder="搜索帖子">
        <i class="iconfont search-icon1">&#xe600;</i>
      </div>
      <i class="iconfont search-icon2">&#xe617;</i>
    </div>
    <div class="tab-box">
      <div class="tab-big">
        <div class="tab">1</div>
        <div class="tab">1</div>
        <div class="tab">1</div>
        <div class="tab">1</div>
        <div class="tab">1</div>
        <div class="tab">1</div>
        <div class="tab">1</div>
        <div class="tab">1</div>
        <div class="tab">1</div>
        <div class="tab">1</div>
        <div class="tab">1</div>
        <div class="tab">1</div>
        <div class="tab">1</div>
        <div class="tab">1</div>
        <div class="tab">1</div>
        <div class="tab">1</div>
        <div class="tab">1</div>
        <div class="tab">1</div>
        <div class="tab">1</div>
        <div class="tab">1</div>
        <div class="tab">1</div>
        <div class="tab">1</div>
        <div class="tab">1</div>
        <div class="tab">1</div>
        <div class="tab">1</div>
      </div>
    </div>
  </div>
</template>
<script>
</script>
<style lang="scss" scoped>
$width: 100%;
$bg-color: red;

.search-box {
  width: $width;
  height: 44px;
  line-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-evenly;

  .search-icon2 {
    color: rgb(51, 51, 51);
  }

  .search {
    position: relative;
    display: flex;
    width: 341.3px;
    height: 30px;
    background-color: rgb(245, 244, 242);
    align-items: center;
    justify-content: center;

    input {
      text-align: center;
      border: 0;
      background-color: rgb(245, 244, 242);

      &::placeholder {
        font-size: 16px
      }
    }

    .search-icon1 {
      position: absolute;
      left: 0;
      margin-left: 115px;
      font-size: 18px;
    }
  }
}

.tab-box {
  width: $width;
  height: 54px;
  background-color: $bg-color;
  overflow: scroll;
  .tab-big{
    width: 200%;
    background-color: blue;
    height: 54px;

  }
}
</style>
